package product;

import java.util.Objects;

public class Seat {
    private final int row, col;
    public Seat(int row, int col) { this.row = row; this.col = col; }
    public int getRow() { return row; }
    public int getCol() { return col; }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Seat)) return false;
        Seat s = (Seat) o;
        return row == s.row && col == s.col;
    }

    @Override
    public int hashCode() { return Objects.hash(row, col); }
}